package com.hb.gp.util.command;

import com.hb.gp.util.MsgGenUtil;



public class APDU_Select {
	/**
     * 选择安全域
     */
    public static String select(String aid) {
        int len = aid.length() / 2;
        StringBuffer buf = new StringBuffer();
        buf.append("00A40400");
        buf.append(MsgGenUtil.buf2hex(MsgGenUtil.Int2Bytes1(len)));
        buf.append(aid);
        return buf.toString();
    }
    /**
     * 选择主安全域
     */
    public static String select() {
        StringBuffer buf = new StringBuffer();
        buf.append("00A4040000");
        return buf.toString();
    }
}
